home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / ftpnt5.ht_ / ftpnt5.htt
Encoding:
Text File  |  2003-06-19  |  10.8 KB  |  319 lines

  1. <!-- 
  2. * Copyright 1999 Microsoft Corporation.  All rights reserved.
  3. * This file was automatically generated by Microsoft Internet Explorer
  4. * using the file %TEMPLATEDIR%\ftp.htt
  5. -->
  6.  
  7. <HTML>
  8.     <style>
  9.         body        {margin: 0; font: menu; color: black}
  10.         #Panel      {position: absolute; width: 200px; height: 100%; visibility: hidden; overflow: auto}
  11.         #Corner     {padding-left: 12px; padding-top: 11px}
  12.         #FolderIcon {width: 32px; height: 32px}
  13.         #FolderName {margin-top: 8px; font: 13pt/13pt; font-weight: bold}
  14.         #LogoLine   {width: 100%; margin-top: 4px; vertical-align: top}
  15.         #Details    {padding-left: 12px; margin-top: 8px}
  16.         #Locked     {vertical-align: baseline}
  17.         #Preview    {}
  18.         .Movie      {width: 120px; height: 136px}
  19.         .Sound      {width: 120px; height: 46px}
  20.         #Thumbnail  {width: 120px; height: 120px}
  21.         .Legend     {margin-left: 12px; margin-right: -12px}
  22.         #PieChart   {width: 120px; height: 60px; margin-top: 10px}
  23.         #FileList   {position: absolute; left: 200px; width: 100%; height: 100%; tabIndex: 1}
  24.         p           {margin-top: 12px}
  25.         p.Half      {margin-top: 6px}
  26.         button      {font: 8pt Tahoma; margin-left: 12px; background: white; color: black}
  27.         input       {font: 8pt Tahoma}
  28.         .Message    {margin-right: 0; padding: 3px; background: infobackground; color: infotext; border: 1px solid lightgrey}
  29.         .accesskey  {}
  30.     </STYLE>
  31.  
  32.     <HEAD>
  33.     <!-- allow references to any resources you might add to the folder -->
  34.     <BASE href="%THISDIRPATH%\">
  35.  
  36.     <SCRIPT LANGUAGE="vbscript">
  37.         Const g_nCR = 13
  38.         Const g_nLF = 10
  39.  
  40.         Function TranslateCRs(strIn)
  41.         Dim strOut
  42.         strOut = ""
  43.  
  44.         While 0 < Len(strIn)
  45.             if Asc(strIn) = g_nCR then
  46.                 strIn = strIn & " "
  47.                 strIn = Right(strIn, Len(strIn) - 1)
  48.             else
  49.                 strOut = strOut & Chr(Asc(strIn))
  50.             end if
  51.  
  52.             strIn = Right(strIn, Len(strIn) - 1)
  53.         Wend
  54.  
  55.         TranslateCRs = strOut
  56.         end Function
  57.     </SCRIPT>
  58.  
  59.     <SCRIPT LANGUAGE="JavaScript">
  60.         // To localize
  61.         var L_Intro_Text    = "";
  62.         var L_Multiple_Text    = " objects selected.";
  63.         var L_AnonymousUserName_Text = "Anonymous";
  64.         var L_MOTDDialogTitle_Text = "The server has provided the following message about using the server:\n\n";
  65.         var L_ServerLabel_Text = "Server: ";
  66.         var L_UserNameLabel_Text = "User Name: ";
  67.  
  68.         var L_TooltipLoginButton_Text = "This button will display the Login dialog to allow you to login under a different username. This is most often needed when the server won't give you access under the current user.";
  69.         var L_ToolTipEmailAddress_Text = "This is the e-mail address that will be provided to the server to identify you when you login anonymously.";
  70.         var L_TooltipPassword_Text = "This password and the user name above will be used to attempt to relog you into the server when you click on the 'Login' button.";
  71.         var L_ToolTipUserName_Text = "Enter a different username and click 'Login' to login as another user.";
  72.         var L_TooltipAnonCheckBox_Text = "Turning this on and clicking the 'Login' button will log you into the server anonymously, which the server may or may not allow. The e-mail address you provide below will be given to the server.";
  73.  
  74.         // Do not localize
  75.         var g_strUserName;
  76.         var g_strPassword;
  77.         var g_strEmailAddress;
  78.         var g_fAnonymousLogin;
  79.         var g_fDelayedLoginInfoInited = 0;
  80.         var g_strAnonymous = "Anonymous";       // Do not localize
  81.  
  82.         function Resize() {
  83.             if (document.body.clientWidth < Panel.style.pixelWidth * 2) {
  84.                 Panel.style.visibility = "hidden";
  85.                 FileList.style.pixelLeft = 0;
  86.             } else {
  87.                 Panel.style.visibility = "visible";
  88.                 FileList.style.pixelLeft = Panel.style.pixelWidth;
  89.             }
  90.             FileList.style.pixelWidth = document.body.clientWidth - FileList.style.pixelLeft;
  91.         }
  92.  
  93.         function SanatizeString(data) {
  94.           var re = /\</g;
  95.           var s = data.replace( re, "<");
  96.           re = />/g;
  97.           s = s.replace( re, ">");
  98.  
  99.           return s;
  100.         }
  101.  
  102.         function Initialize()
  103.         {
  104.             var strMOTD;
  105.  
  106.             // call our Resize() function whenever the window gets resized
  107.             window.onresize = Resize;
  108.             Resize();
  109.             Info.innerHTML = L_Intro_Text;
  110.  
  111.             InitLoginInfo();
  112.             if (1 == DisplayOptions())
  113.                 ToggleOptionsAvailablility();
  114.  
  115.             // fix styles
  116.             var L_SystemFont1_Text = "MS Sans Serif";
  117.             var L_SystemFont2_Text = "MS Shell Dlg";
  118.             var L_SystemFont_Text = "Tahoma, Verdana";
  119.             var tr = document.body.createTextRange();
  120.             if (navigator.cpuClass != "Alpha") {
  121.                 tr.collapse();
  122.                 var actualFont = tr.queryCommandValue("FontName");
  123.                 if (actualFont == L_SystemFont1_Text || actualFont == L_SystemFont2_Text)
  124.                     document.body.style.fontFamily = L_SystemFont_Text;
  125.             } else
  126.                 document.body.style.fontFamily = L_SystemFont_Text;
  127.         }
  128.  
  129.         function DisplayOptions()
  130.         {
  131.             return 0;
  132.         }
  133.  
  134.         function OnMOTDDialog()
  135.         {
  136.             alert(L_MOTDDialogTitle_Text + document.all.ID_MOTD.innerText);
  137.         }
  138.  
  139.         function ToggleOptionsAvailablility()
  140.         {
  141.         }
  142.  
  143.         function InitLoginInfo()
  144.         {
  145.             if (ID_FTPWebView)
  146.             {
  147.         var L_None_Text = "None";
  148.                 strMOTD = TranslateCRs(ID_FTPWebView.MessageOfTheDay);
  149.                 ID_MOTD.innerText = strMOTD;
  150.         ID_MOTD.style.display = ((strMOTD == "") || (strMOTD == L_None_Text)) ? "none" : "";
  151.  
  152.                 document.all.ID_Server.innerText = (L_ServerLabel_Text + ID_FTPWebView.Server);
  153.                 g_strUserName = ID_FTPWebView.UserName;
  154.                 g_fAnonymousLogin = ID_FTPWebView.CurrentLoginAnonymous;
  155.  
  156.                 if (1 == g_fAnonymousLogin)
  157.                     document.all.ID_StaticUserName.innerText = (L_UserNameLabel_Text + g_strAnonymous);
  158.                 else
  159.                     document.all.ID_StaticUserName.innerText = (L_UserNameLabel_Text + g_strUserName);
  160.             }
  161.         }
  162.  
  163.         function InitDelayedLoginInfo()
  164.         {
  165.             g_fDelayedLoginInfoInited = 1;
  166.  
  167.             if (null != ID_FTPWebView)
  168.             {
  169.                 g_strPassword = ID_FTPWebView.Password;
  170.                 g_strEmailAddress = ID_FTPWebView.EmailAddress;
  171.  
  172.                 OnAnonymouseChange();
  173.                 OnUserNameChange();
  174.             }
  175.         }
  176.  
  177.         function EnableDisableLoginButton()
  178.         {
  179.         }
  180.  
  181.         function OnAnonymouseChange()
  182.         {
  183.         }
  184.  
  185.         function OnUserNameChange()
  186.         {
  187.         }
  188.  
  189.         function OnEmailAddressChange()
  190.         {
  191.         }
  192.  
  193.         function DisplayLoginDialog()
  194.         {
  195.         }
  196.  
  197.         function OnWebviewLinkEnter( aLink )
  198.         {
  199.             if( aLink.title )
  200.             {
  201.                 window.status = aLink.title;
  202.             }
  203.             else
  204.             {
  205.                 window.status = "";
  206.             }
  207.             return true;
  208.         }
  209.  
  210.         function OnWebviewLinkExit()
  211.         {
  212.             window.status = "";
  213.             return false;
  214.         }
  215.     </SCRIPT>
  216.  
  217.     <SCRIPT language="JavaScript" for="FileList" event="SelectionChanged">
  218.         // this script updates the left info panel when you select icons
  219.         var folder    = FileList.Folder;
  220.         var data;
  221.         var text;
  222.         var i;
  223.  
  224.         data = FileList.SelectedItems().Count;
  225.         if (data == 0)
  226.         {
  227.             // nothing selected?
  228.             Info.innerHTML = L_Intro_Text;
  229.             return;
  230.         }
  231.         else if (data > 1)
  232.         {
  233.             // more than one item selected?
  234.             text = data + L_Multiple_Text + "<br>";
  235.             if (data <= 16)
  236.             {
  237.                 for (i = 0; i < data; i++)
  238.                 {
  239.                     text += "<br>" + SanatizeString(FileList.SelectedItems().Item(i).Name);
  240.                 }
  241.             }
  242.             Info.innerHTML = text + "<br><br>";
  243.             return;
  244.         }
  245.         else if (data == 1)
  246.         {
  247.             Info.innerHTML = "<b>" + SanatizeString(FileList.SelectedItems().Item(0).Name) + "</b><br><br>";
  248.         }
  249.     </SCRIPT>
  250.  
  251.     <script language="JavaScript">
  252.         function Load() {
  253.             Initialize();
  254.             Resize();
  255.         }
  256.     </script>
  257.  
  258.     <script language="JavaScript" for="WVLink" event="onmouseover">
  259.         return OnWebviewLinkEnter( this );
  260.     </script>
  261.  
  262.     <script language="JavaScript" for="WVLink" event="onfocus">
  263.         return OnWebviewLinkEnter( this );
  264.     </script>
  265.  
  266.     <script language="JavaScript" for="WVLink" event="onmouseout">
  267.         return OnWebviewLinkExit();
  268.     </script>
  269.  
  270.     <script language="JavaScript" for="WVLink" event="onblur">
  271.         return OnWebviewLinkExit();
  272.     </script>
  273.     </HEAD>
  274.  
  275.     <body scroll=no onload=Load()>
  276.         <div id=Panel style="background: white URL(file://%TEMPLATEDIR%/wvleft.bmp) no-repeat">
  277.             <div id=Corner>
  278.                 <object id=FolderIcon classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  279.                     <param name="scale" value=100>
  280.                 </object>
  281.                 <br>
  282.                 <div id=FolderName>
  283.                     %THISDIRNAME%
  284.                 </div>
  285.             </div>
  286.             <img id=LogoLine src="%TEMPLATEDIR%\wvline.gif">
  287.             <div id=Details>
  288.  
  289.             <SPAN ID="ID_Server"> </SPAN><BR>
  290.             <SPAN ID="ID_StaticUserName"> </SPAN>
  291.             <BR>
  292.             <BR>
  293.             <ID id=lochack9>
  294.  
  295.             <BR>
  296.  
  297.             <DIV ID="ID_MOTD" CLASS=Message>
  298.             <!-- the message of the day will be inserted here by the script. -->
  299.             </DIV>
  300.             <BR>
  301.             <ID ID=Help>
  302.             <A HREF="javascript:ID_FTPWebView.InvokeHelp()" name="WVLink"> Click here</A> to learn about browsing FTP sites.<BR>
  303.             </ID>
  304.  
  305.             </P>
  306.                 <span id=Info>
  307.                 </span>
  308.             </div>
  309.         </div>
  310.         <object id=FileList tabindex=1 border=0 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  311.         </object>
  312.  
  313.         <OBJECT id="ID_FTPWebView" border=0 tabindex=1 classid="clsid:210DA8A2-7445-11d1-91F7-006097DF5BD4"
  314.         </OBJECT>
  315.  
  316.     </BODY>
  317. </HTML>
  318.  
  319.